package meconsea.life.buddy.accessor;

import java.util.List;

import meconsea.life.buddy.entity.BuddyList;
import meconsea.life.sys.accessor.BaseAccessor;
import meconsea.life.sys.accessor.IAccessor;

import com.google.inject.name.Named;
import com.wideplay.warp.persist.TransactionType;
import com.wideplay.warp.persist.Transactional;
import com.wideplay.warp.persist.dao.Finder;
import com.wideplay.warp.persist.dao.FirstResult;
import com.wideplay.warp.persist.dao.MaxResults;

public class BuddyListAccessor extends BaseAccessor<BuddyList, String> implements
		IAccessor<BuddyList, String> {
	public BuddyListAccessor(){
		super(BuddyList.class);
	}
	
	@Finder(namedQuery=BuddyList.BUDDY_LIST_FIND_BYUSER)
	public BuddyList getBLByUser(@Named("userName") String userName){
		return null;
	}
	
	@Finder(namedQuery=BuddyList.BUDDY_LIST_FIND_ORDERFRIEND)
	public List<BuddyList> getBLByOrder(@FirstResult int first,@MaxResults int max){
		return null;
	}
}
